import java.util.Arrays;

class Acronym {

    private String[] phrase;

    Acronym(String phrase) {
        this.phrase = phrase.toUpperCase().split("[\\s|\\-]+");
    }

    String get() {
        StringBuilder result = new StringBuilder();
        Arrays.stream(this.phrase).forEach(s -> result.append(s.substring(0, 1)));
        return result.toString();
    }

}
